package com.huikeportal.service;

import java.util.List;
import com.huikeportal.model.MenuInfo;
import com.huikeportal.model.MessageCommon;
import com.huikeportal.model.RoleInfo;
import com.huikeportal.model.RolePageButton;
import com.huikeportal.model.TreeHtml;
import com.huikeportal.model.UserInfo;

public interface RoleService {

	public String getRoleTreeHtml(UserInfo userInfo, String roldId)
			throws Exception;

	public List<RolePageButton> getButtonHtml(UserInfo userInfo, String roleId)
			throws Exception;

	public List<MenuInfo> getPageInfo(String flag,
			List<RolePageButton> roleHtml, String sysLang) throws Exception;

	public List<TreeHtml> getRoleList(UserInfo userInfo) throws Exception;

	public String addRole(RoleInfo roleInfo, UserInfo userInfo)
			throws Exception;

	public RoleInfo getRoleByRoleId(RoleInfo roleInfo) throws Exception;

	public String editRole(RoleInfo roleInfo) throws Exception;

	public String saveConfig(RoleInfo roleInfo) throws Exception;

	public MessageCommon deleteRole(RoleInfo roleInfo) throws Exception;
}
